<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Simpla Admin</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="/Public/resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="/Public/resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="/Public/resources/css/invalid.css" type="text/css" media="screen" />
<!--                       Javascripts                       -->
<!-- jQuery -->
<script type="text/javascript" src="/Public/resources/scripts/jquery-1.3.2.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="/Public/resources/scripts/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/facebox.js"></script>
<!-- jQuery WYSIWYG Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/jquery.wysiwyg.js"></script>
<!-- jQuery Datepicker Plugin -->
<script type="text/javascript" src="/Public/resources/scripts/jquery.datePicker.js"></script>
<script type="text/javascript" src="/Public/resources/scripts/jquery.date.js"></script>
<script language="javascript" type="text/javascript" src="__APP__/../public/xheditor/jquery/jquery-1.4.2.min.js"></script>
<script language="javascript" type="text/javascript" src="__APP__/../public/xheditor/xheditor-1.1.6-zh-cn.min.js"></script>

<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$('#content_text').xheditor({upLinkUrl:"/index.php/Admin/Content/upload",upLinkExt:"zip,rar,txt",upImgUrl:"/index.php/Admin/Content/uploadimg",upImgExt:"jpg,jpeg,gif,png",upFlashUrl:"/index.php/Admin/Content/upload",upFlashExt:"swf",upMediaUrl:"/index.php/Admin/Content/upload",upMediaExt:"wmv,avi,wma,mp3,mid",shortcuts:{'ctrl+enter':submitForm}});
}

function insertUpload(arrMsg)
{
	var i,msg;
	for(i=0;i<arrMsg.length;i++)
	{
		msg=arrMsg[i];
		$("#uploadList").append('<option value="'+msg.id+'">'+msg.localname+'</option>');
	}
}

function submitForm(){$('#frmDemo').submit();}
</script>

</head>
<body>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="sidebar">
    <div id="sidebar-wrapper">
      <!-- Sidebar with logo and menu -->
      <h1 id="sidebar-title"><a href="#">Simpla Admin</a></h1>
      <!-- Logo (221px wide) -->
      <a href="http://127.0.0.1/index.php"><img id="logo" src="/Public/resources/images/logo.png" alt="Simpla Admin logo" /></a>
      <!-- Sidebar Profile links -->
      <div id="profile-links"> Hello, <a href="#" title="Edit your profile"><?php echo $_SESSION["username"];?></a><br />
        <br />
        <a href="#" title="View the Site">Welcome</a> | <a href="__APP__/Admin/Index/logout" title="Sign Out">退出</a> </div>
      <ul id="main-nav">
        <!-- Accordion Menu -->
<li><a href="__APP__/Admin/Space/index"
	class="nav-top-item no-submenu"> <!-- Add the class "no-submenu" to menu items with no sub menu -->
		管理面板 </a></li>
<li><a href="__APP__/Admin/Content/index" class="nav-top-item">
		<!-- Add the class "current" to current menu item --> 文章管理 </a>
	<ul>
		<li><a href="__APP__/Admin/Content/newcontent">添加文章</a>
		</li>
		<li><a href="__APP__/Admin/Content/index">查看文章</a>
		</li>
		<!-- Add class "current" to sub menu items also -->
	</ul></li>
<li><a href="__APP__/Admin/Category/index"
	class="nav-top-item"> 栏目分类 </a>
	<ul>
		<li><a href="__APP__/Admin/Category/newcategory">添加栏目</a>
		</li>
		<li><a href="__APP__/Admin/Category/index">查看栏目</a>
		</li>
	</ul></li>
<li><a href="__APP__/Admin/Channel/index" class="nav-top-item  current">
		频道管理 </a>
	<ul>
		<li><a href="__APP__/Admin/Channel/newchannel">添加频道</a>
		</li>
		<li><a href="__APP__/Admin/Channel/index"  class="current">查看频道</a>
		</li>
	</ul></li>
<li><a href="__APP__/Admin/Page/index"
	class="nav-top-item"> 静态页面 </a>
	<ul>
		<li><a href="__APP__/Admin/Page/addhtml">添加页面</a>
		</li>
		<li><a href="__APP__/Admin/Page/index">查看页面</a>
		</li>
	</ul>
</li>
<li><a href="__APP__/Admin/Playbill/index"
	class="nav-top-item  no-submenu"> 首页BANNER </a>
</li>
<li><a href="__APP__/Admin/User/index" class="nav-top-item  no-submenu">
		用户管理 </a>
</li>
<li><a href="__APP__/Admin/Link/index"
	class="nav-top-item  no-submenu"> 友情链接 </a></li>
</ul>
<!-- End #main-nav -->
</div>
</div>
<!-- End #sidebar -->
<div id="main-content">
	<!-- Main Content Section with everything -->
	<noscript>
		<!-- Show a notification if the user has disabled javascript -->
		<div class="notification error png_bg">
			<div>
				Javascript is disabled or is not supported by your browser. Please <a
					href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a>
				your browser or <a
					href="http://www.google.com/support/bin/answer.py?answer=23852"
					title="Enable Javascript in your browser">enable</a> Javascript to
				navigate the interface properly. Download From <a
					href="http://www.exet.tk">exet.tk</a>
			</div>
		</div>
	</noscript>
	<!-- Page Head -->
	<p id="page-intro">
	<h2>快捷菜单</h2>
	</p>
	<ul class="shortcut-buttons-set">
		<li><a class="shortcut-button"
			href="__APP__/Admin/Content/newcontent"><span> <img
					src="/Public/resources/images/icons/pencil_48.png" alt="icon" /><br />
					写一篇文章 </span> </a>
		</li>
		<li><a class="shortcut-button" href="__APP__/Admin/Category/newcategory"><span> <img
					src="/Public/resources/images/icons/paper_content_pencil_48.png"
					alt="icon" /><br /> 添加一个分类 </span> </a>
		</li>
		<li><a class="shortcut-button" href="__APP__/Admin/Channel/newchannel"><span> <img
					src="/Public/resources/images/icons/image_add_48.png"
					alt="icon" /><br /> 添加一个频道 </span> </a>
		</li>
	</ul>
	<!-- End .shortcut-buttons-set -->
	<div class="clear"></div>
	<!-- End .clear -->
	<div class="content-box">
		<!-- Start Content Box -->
		<div class="content-box-header">
			<h3>Content box</h3>
			<ul class="content-box-tabs">
				<!-- href must be unique and match the id of target div -->
				<li><a href="#tab1" class="default-tab">Table</a>
				</li>
			</ul>
			<div class="clear"></div>
		</div>
		<!-- End .content-box-header -->
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<table>
					<tr>
						<th>频道名称</th>
						<th>ID+频道分类</th>
						<th>频道描述</th>
						<th>首页显示</th>
						<th>显示条数</th>
						<th>首页排序</th>
						<th>导航排序</th>
						<th>启用状态</th>
						<th>管理频道</th>
						<th>内容管理</th>
					</tr>
					<?php if(is_array($channels)): $i = 0; $__LIST__ = $channels;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$channel): ++$i;$mod = ($i % 2 )?><tr>
						<td><?php echo ($channel["channel_name"]); ?></td>
						<th><?php echo ($channel["channel_category"]); ?>&nbsp;&nbsp;<?php echo ($channel["channel_category_name"]); ?></th>
						<td><?php echo ($channel["channel_description"]); ?></td>
						<td><?php if(($channel["channel_index"])  ==  "1"): ?>显示<?php else: ?>不显示<?php endif; ?></td>
						<td><?php echo ($channel["channel_index_count"]); ?></td>
						<td><?php echo ($channel["channel_sort"]); ?></td>
						<td><?php echo ($channel["channel_navisort"]); ?></td>
						<td><?php if(($channel["channel_state"])  ==  "1"): ?>启用<?php else: ?>未启用<?php endif; ?></td>
						<td><a href="__URL__/editchannel?id=<?php echo ($channel["channel_id"]); ?>"><img
								src="/Public/resources/images/icons/pencil.png" alt="Edit" />
						</a> <a href="__URL__/deletechannel?id=<?php echo ($channel["channel_id"]); ?>"><img
								src="/Public/resources/images/icons/cross.png" alt="Delete" />
						</a>
						</td>
						<td><a
							href="__URL__/../Content/index?channel=<?php echo ($channel["channel_id"]); ?>">查看内容</a>
						</td>
					</tr><?php endforeach; endif; else: echo "" ;endif; ?>
				</table>
			</div>
		</div>
		<!-- End #tab2 -->
	</div>
	<!-- End .content-box-content -->
	<div class="clear"></div>
	<div id="footer">
		<small> <!-- Remove this notice or replace it with whatever you want -->
			&#169; Copyright 2010 Your Company | Powered by <a
			href="http://www.865171.cn">admin templates</a> | <a href="#">Top</a>
		</small>
	</div>
	<!-- End #footer -->
</div>
<!-- End #main-content -->
</div>
</div>
</body>
</html>